package com.ten_4_4.hiring.comm.util;

import javax.servlet.http.HttpServletRequest;

import com.ten_4_4.hiring.talent.po.TalentPo;

public abstract class TalentUtil {
	public static TalentPo getTalentPoFromSession(HttpServletRequest request) {
		return (TalentPo) request.getSession().getAttribute("talentPo");
	}
	public static int getTalentPoIdFromSession(HttpServletRequest request) {
		TalentPo talentPo = getTalentPoFromSession(request);
		if(talentPo != null)
			return talentPo.getId();
		return -1;
	}
}
